package com.dd.cloud.user.req.classroom;

import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * <p>
 * 媒体小节说明表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
public class CreateMediaContentReq implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 视频id
     */
    private Integer id;

    /**
     * 小节标题
     */
    @Name(begin = "视频标题")
    private String name;

    /**
     * 是否更改了视频
     */
    private Integer isUpdateMedia = 0;

    /**
     * 小节图片地址
     */
    //@NotNull(message = "视频文件不能为空")
    private MultipartFile file;

    /**
     * 排序
     */
    private Integer sort;

}
